package request

import (
	"gitee.com/cjsn/topsdk/util"
)

type AlibabaServicecenterIdentifytaskCreateRequest struct {
	/*
	   工单集合     */
	WorkcardIds *[]int64 `json:"workcard_ids" required:"true" `
	/*
	   核销单外部标识，服务商保证唯一。如果创建核销单时传入重复的outer_id，系统直接会返回服务商下该outer_id对应的核销单，不会重新创建新核销单。     */
	OuterId *string `json:"outer_id" required:"true" `
}

func (s *AlibabaServicecenterIdentifytaskCreateRequest) SetWorkcardIds(v []int64) *AlibabaServicecenterIdentifytaskCreateRequest {
	s.WorkcardIds = &v
	return s
}
func (s *AlibabaServicecenterIdentifytaskCreateRequest) SetOuterId(v string) *AlibabaServicecenterIdentifytaskCreateRequest {
	s.OuterId = &v
	return s
}

func (req *AlibabaServicecenterIdentifytaskCreateRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.WorkcardIds != nil {
		paramMap["workcard_ids"] = util.ConvertBasicList(*req.WorkcardIds)
	}
	if req.OuterId != nil {
		paramMap["outer_id"] = *req.OuterId
	}
	return paramMap
}

func (req *AlibabaServicecenterIdentifytaskCreateRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
